<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录系统</title>
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0/dist/css/bootstrap.min.css" rel="stylesheet">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css" rel="stylesheet">
    <link th:href="@{/css/common.css}" rel="stylesheet">
    <!-- 在head标签内添加 -->
    <style>
        .login-container {
            min-height: 100vh;
            display: flex;
            align-items: center;
            justify-content: center;
            padding: 2rem;
            background: linear-gradient(135deg, #e6f7ed 0%, #dee2e2 100%);
        }
        .login-card {
            max-width: 400px;
            padding: 2.5rem;
            background-color: #fff;
            border-radius: 15px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        }
        .login-header i {
            font-size: 4rem;
            background: linear-gradient(135deg, #e2e6e5 0%, #d8eae6 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
        }
        .login-header h2 {
            color: #333;
            margin-top: 1.5rem;
        }
        .form-label {
            color: #666;
            font-weight: 500;
        }
        .form-control {
            border: 1px solid #ccc;
            border-radius: 10px;
            padding: 0.8rem 1rem;
            font-size: 1rem;
            transition: border-color 0.3s ease;
        }
        .form-control:focus {
            border-color: #007b5e;
            box-shadow: 0 0 0 0.25rem rgba(0, 123, 94, 0.25);
        }
        .btn-primary {
            background-color: #007b5e;
            border-color: #007b5e;
            border-radius: 10px;
            padding: 0.8rem 1rem;
            font-size: 1rem;
            transition: background-color 0.3s ease;
        }
        .btn-primary:hover {
            background-color: #005f4b;
            border-color: #005f4b;
        }
    </style>
</head>
<body>
<div class="login-container">
    <div class="login-card card">
        <div class="login-header">
            <i class="bi bi-person-circle"></i>
            <h2 class="mt-3">用户登录</h2>
        </div>
        <form th:action="@{/doLogin}" method="post" id="loginForm">
            <div class="mb-4">
                <label class="form-label">
                    <i class="bi bi-person me-2"></i>账号
                </label>
                <input type="text" class="form-control" name="account" required>
            </div>
            <div class="mb-4">
                <label class="form-label">
                    <i class="bi bi-lock me-2"></i>密码
                </label>
                <input type="password" class="form-control" name="password" required>
            </div>
            <button type="submit" class="btn btn-primary w-100">
                <i class="bi bi-box-arrow-in-right me-2"></i>登录
            </button>
        </form>
    </div>
</div>
</body>
</html>